package sg.edu.nus.iss.stockex;

public class StochasticOscillator {
	public String code;
	public String date;
	public Double value;
	//past 30 days based on code and date...
	public StochasticOscillator(String code, String date, double value) {
		super();
		this.code = code;
		this.date = date;
		this.value = value;
	}
	
	public StochasticOscillator(String strLine) {
		super();
		String [] words = strLine.split("\t");
		this.code = words[0].trim();
		this.date = words[1].trim();
		this.value = Double.parseDouble(words[4].trim());
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public double getValue() {
		return value;
	}
	public void setValue(Double value) {
		this.value = value;
	}
	
	
}
